package org.example.projecttwo.entity.dto.content.request;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

@Data
@Schema(description = "新闻审核DTO，用于提交审核结果")
public class NewsAuditDTO {

    @NotNull(message = "审核结果不能为空")
    @Schema(description = "审核结果：1-待审核，2-审核通过，3-未通过", example = "1")
    private Integer auditResult;

    @Schema(description = "拒绝原因，审核未通过时必填", example = "内容与事实不符")
    @NotBlank(message = "拒绝原因不能为空", groups = {RejectGroup.class})
    private String rejectReason;

    // 用于分组校验的内部接口
    public interface RejectGroup {}
}